src=source
conf=cloud.json
kill=kill.sh

bin:
	@cd $(src) && make

test:
	@cd $(src) && make test;

publ:public public/$(conf) public/$(kill)
	@cd $(src) && make public;
	
clean:
	@cd $(src) && make clean;
	rm -rf public


public/$(conf):$(conf)
	cp -r $^ $@
public/$(kill):$(kill)
	cp -r $^ $@

public:
	mkdir $@ 


.PHONY:towin tolinux

project=~/Project/cloud/client

lnx_user=yyx
lnx_addr=47.101.68.49
win_user=w3395
win_addr=192.168.2.14
lnx_dst=/home/yyx
win_dst=D:\\

towin:
	scp -r $(project) $(win_user)@$(win_addr):$(win_dst)
tolinux:
	scp -r $(project) $(lnx_user)@$(lnx_addr):$(lnx_dst)

